package system

import (
	"context"

	"go_admin/api/system/v1"
	"go_admin/internal/service"
)

func (c *ControllerV1) SysUserOnlineList(ctx context.Context, req *v1.SysUserOnlineListReq) (res *v1.SysUserOnlineListRes, err error) {
	res, err = service.SysUserOnline().GetOnlineListPage(ctx, req)
	return
}
func (c *ControllerV1) SysUserOnlineForceLogout(ctx context.Context, req *v1.SysUserOnlineForceLogoutReq) (res *v1.SysUserOnlineForceLogoutRes, err error) {
	err = service.SysUserOnline().ForceLogout(ctx, req.Ids)
	return
}
